<template>
	<view class="advertisement" style="width: 100%;">
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
				idToken: '',
				scurl: '',
			};
		},
		onLoad() {},
		onShow() {
			this.getUser()
		},
		mounted() {},
		methods: {
			async getUser() {
				this.scurl = uni.getStorageSync('scurl')
				this.idToken = uni.getStorageSync('x-auth-token')
				// console.log(this.scurl)
				this.url = this.scurl + '#/?accessToken=' + this.idToken + '&memberId=' + uni.getStorageSync('id');
				// this.url = ''http://120.79.0.124/h5/#/''
				// this.url = 'http://119.91.155.46/sc/#/?accessToken='+this.idToken;
				// this.url = 'http://localhost:8081/#/?accessToken='+this.idToken;
			},
		},
	};
</script>

<style>
	page {
		background-color: #FFFFFF;
	}

	.Combination {
		margin-top: 224rpx;
		display: flex;
		justify-content: center;
		/* border: 1rpx solid; */
	}

	image {
		width: 550rpx;
		height: 550rpx;
	}
</style>
